home *** CD-ROM | disk | FTP | other *** search
/ Aminet 25 / Aminet 25 (1998)(GTI - Schatztruhe)[!][Jun 1998].iso / Aminet / dev / amos / AMOS0398.lzh / AMOSLIST / 000141_amos-request@svcs1.digex.net_Sat Mar 14 11:43:38 1998.msg < prev    next >
Text File  |  1998-04-01  |  4KB  |  112 lines

  1. >From amos-request@svcs1.digex.net  Sat Mar 14 11:43:38 1998
  2. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
  3.     by pony-1.mail.digex.net (8.8.8/8.8.8) with ESMTP id LAA16385
  4.     for <mcox@access.digex.net>; Sat, 14 Mar 1998 11:43:37 -0500 (EST)
  5. Received: (from daemon@localhost)
  6.     by svcs1.digex.net (8.8.5/8.8.5) id JAA00553
  7.     for amos-out; Sat, 14 Mar 1998 09:18:20 -0500 (EST)
  8. Received: from pony-2.mail.digex.net (pony-2.mail.digex.net [204.91.241.6])
  9.     by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id JAA00550
  10.     for <amos-list@svcs1.digex.net>; Sat, 14 Mar 1998 09:18:19 -0500 (EST)
  11. Received: from sunny.bahnhof.se (sunny.bahnhof.se [193.44.91.1])
  12.     by pony-2.mail.digex.net (8.8.8/8.8.8) with ESMTP id JAA04650
  13.     for <amos-list@access.digex.net>; Sat, 14 Mar 1998 09:18:13 -0500 (EST)
  14. Received: from pm1-33.bahnhof.se (jonasth@pm1-33.bahnhof.se [193.44.91.97])
  15.     by sunny.bahnhof.se (8.8.8/8.8.8) with SMTP id PAA07649
  16.     for <amos-list@access.digex.net>; Sat, 14 Mar 1998 15:18:06 +0100 (MET)
  17. Date: 14 Mar 98 15:12:21 +0100
  18. From: "Jonas Thorell" <jonasth@bahnhof.se>
  19. Subject: Re: extension?  Phew!! DIE THREAD DIE!!
  20. To: "Garfield Benjamin" <amos-list@access.digex.net>
  21. In-Reply-To: <B0000232884@mailhost.sosbbs.com>
  22. Message-ID: <2703.377T1052T9123333@bahnhof.se>
  23. MIME-Version: 1.0
  24. Content-type: text/plain; charset=us-ascii
  25. Content-transfer-encoding: 7bit
  26. X-System: Amiga 1200/030@50 Mhz, 34 Meg, 1.5 Gig HD, 28k8
  27. X-Software: Aweb, Miami, Thor
  28. X-Misc-info: Who's reading this??
  29. X-Mailer: THOR 2.5a (Amiga;TCP/IP)
  30. Status: O
  31. X-Status: 
  32.  
  33. Garfield Benjamin (gbenjam@sosbbs.com) wrote:
  34.  
  35. >>>   Well, problem is this won't work. 
  36.  
  37. >   > Yes it will. I tried it.
  38.  
  39. >      Very strange as I just tried it as well and AMOS gives an error
  40. >      (missing End If) just as I suspected!!  The only thing I can 
  41. >      assume is that you and Keith are using AMOS Pro which must
  42. >      have changed things a bit.  In AMOS v1.36 it will NOT work.
  43.  
  44. Yup, you're right. It's AMOS Pro that allows it. Just ran Classic too
  45. and tried it. Error right away. 
  46.  
  47.  
  48. >> The logic is the same too. Select..is just
  49. >> more advanced in that it offers some extra features.
  50.  
  51. >   The logic is NOT the same.  Look at the above code again.  This
  52. >   will print "WOW, you're over 21!!" as long as AGE is greater than
  53. >   9 and unequal to 21... 
  54.  
  55. Ooops! You're completely right. But if we take another piece of code
  56. then, like this.
  57.  
  58. If A=1
  59.     print "Hello"
  60. else if a>1 and a<10
  61.     print "A is now between 2 and 9"
  62. else
  63.     print "A is 10 or higher"
  64. endif
  65.  
  66. and the same code using select
  67.  
  68. select A
  69.  
  70. case 1
  71.     print "Hello"
  72.  
  73. case 2-9
  74.     print "A is now between 2 and 9"
  75. case default
  76.     print "A is 10 or higher"
  77. end case
  78.  
  79. Not much of a difference. This is assuming one is using Pro, where the above
  80. syntax of if else if holds true. Here the logic is exactly the same. If clauses
  81. or select clauses is more often than not completely interchangeable. Sometimes
  82. select is far more efficient though.
  83.  
  84. >   > That would trigger the error-system. One if and three end-ifs is
  85. >   > plain wrong.
  86.  
  87. >      Try it... it works fine. 
  88.  
  89. Just did. Pro claims it's endif without if. In classic it worked as it should.
  90. So we were both right.
  91.  
  92. Didn't Europress claim that Pro was a 100% compatible to classic, beside the
  93. extensions? Well, it isn't apparently.
  94.  
  95. >      other, but the whole point of this thread was that it might be
  96. >      nice to have support for SELECT...CASE in AMOS.  :-)
  97.  
  98. Nice it would be indeed, especially for those stuck with Classic it seems. But for
  99. me there are other things that should be higher up on the prioritylist. Hopefully
  100. whoever is upgrading it thinks the same (hopefully for me that is). Only reason
  101. that I don't know that is that I just recently resubbed here. 
  102.  
  103. Shall we put this debate to end now? It seems we're basically agreeing.
  104.  
  105. ---
  106. Look at the shoes you're filling, look at the blood we're spilling
  107. Look at the world we're killing, the way we've always done before
  108. Look at the doubt we've wallowed, look at the leaders we've followed
  109. Look at the lies we've swallowed and I don't wanna hear no more
  110. ---
  111. Form an orderly queue behind the gunsight!
  112.